'''
Created on 29/03/2009

@author: Neper
'''

from DAL.DvdShareDC import TbDVD
from google.appengine.api import mail 
import BLL.DAL.DvdDAL
    
def ListaDVD():
    dvds = BLL.DAL.DvdDAL.ListaDVD()
    return dvds

def Inserir(TbDVD):
    BLL.DAL.DvdDAL.Inserir(TbDVD)

def Deletar(id):
    BLL.DAL.DvdDAL.Deletar(id)
        
def EnviarEmail(id):
    dvd = TbDVD.get_by_id(id)
    message = mail.EmailMessage(sender=user.email(),subject=dvd.dsTitulo)
    message.to = user.email()
    message.body = dvd.dsSinopse
    message.send()    

def __init__(selfparams):
        '''
        Constructor
        '''
        